package com.kang.config;

import com.kang.manager.BotAutoManager;
import lombok.extern.slf4j.Slf4j;
import love.forte.simbot.api.message.containers.BotInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author K.faWu
 * @program service
 * @description: bot启动加载类
 * @create 2022-08-04 16:02
 **/

@Component
@Slf4j
public class BotConfig {

    @Autowired
    private BotAutoManager botAutoManager;
    /**
     * 机器人是否启动
     */
    private static Boolean BOT_STATE = true;


    /**
     * 获取机器人状态
     * @return BOT_STATE
     */
    public static Boolean getBotState(){
        return BOT_STATE;
    }

    /**
     * 修改机器人状态
     * @param botState 新状态
     */
    public static void setBotState(Boolean botState){
        BOT_STATE = botState;
    }

}
